import { dtoBase } from "./dtoBase";
export interface userVM {
  id: number;
  createdby: number;
  createdtime: string;
  updatedby: number;
  updatedtime: string;
  ifdisable: number;
  name: string;
  photo: string;
  roleid: number;
  phone: string;
  email: string;
  wxid: string;
  roleName: string;
  roleCode: string;
  createdName: string;
  updatedName: string;
}

export interface userDTO extends dtoBase {
  name: string;
  photo: string;
  imageUrl: string;
  password?: string;
  roleid: number;
  phone: string;
  email: string;
  wxid?: string;
}
export interface useruppwdDTO {
  id: number;
  name: string;
  password: string;
}
export type RefreshTokenResult = {
  code: number;
  msg: string;
  data: {
    name: string;
    roleCode: string;
    refreshexpires: string; //长tooken
    accessexpires: string; //短tooken
    accexptimestamp: number; //短tooken过期时间单位毫秒
    accexpdatetime: string; //短tooken过期时间 日期格式
  };
};
export type UserResult = {
  code: number;
  msg: string;
  data: {
    refreshexpires: string; //长tooken
    refexptimestamp: number; //长tooken过期时间单位毫秒
    refexpdatetime: string; //长tooken过期时间 日期格式
    accessexpires: string; //短tooken
    accexptimestamp: number; //短tooken过期时间单位毫秒
    accexpdatetime: string; //短tooken过期时间 日期格式
    data: {
      id: number; //主键ID
      createdby: number; //创建人
      createdtime: string; //创建时间
      updatedby: number; //更新人
      updatedtime: string; //更新时间
      ifdisable: number; //是否禁用;1代表启用，0代表禁用
      name: string; //用户名
      photo: string; //头像
      roleid: number; //角色id
      phone: string; //手机号码
      email: string; //邮箱
      wxid: string; //微信id
      roleName: string; //角色名称
      roleCode: string; //角色代码
      createdName: string; //创建人名字
      updatedName: string; //更新人名字
    };
  };
};
